<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

</body>
<script src="js/jquery-1.11.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    document.writeln("<script type=\"text/javascript\" src=\"js/common.js?"+ Math.random() + "\"></scr"+"ipt>");
</script>
<script>
    var payCode
    if(payOpenId != undefined || payOpenId != 'undefined'){
        location.href = shareUrl + "payAuth.html?url="+currentUrl + '&home=1';
        payCode = GetQueryString('code')
    }else {

    }
    if(payCode){
        $.ajax({
            url: hostUrl+"merchant/login?rand="+ new Date().getTime()+"&code="+ payCode ,
            async:false,
            success: function (data) {
                payOpenId = data.data.openId //存下商户id
                localStorage.setItem('payOpenId',payOpenId)
                location.href='index.html'
            },
            error: function () {
                console.info('ajax登录调用出错了');
            }
        });
    }

</script>
</html>